<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateElRefundLogTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('el_refund_log', function (Blueprint $table) {
            $table->increments('id');
            $table->integer('refund_id'); //退款编号
            $table->integer('user_id')->unsigned()->nullable(); //申请人
            $table->integer('admin_id')->unsigned()->nullable(); // 处理人
            $table->string('action');
            $table->string('note')->nullable();
            $table->text('remark')->nullable();
            $table->timestamps();
            $table->softDeletes();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::drop('el_refund_log');
    }
}
